﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HonBlogPub.Entity
{
    class BlogPost
    {
        private List<string> _tags = new List<string>(5);

        internal string Title { get; set; }
        internal string Content { get; set; }
        internal string Summary { get; set; }
        internal PostContext Context { get; set; }

        internal List<string> GetTags()
        {
            return this._tags;
        }

        internal void AddTags(string tagText)
        {
            if (string.IsNullOrEmpty(tagText)) return;

            _tags.AddRange(tagText.Split(','));
        }

        internal void SetCategory(string category)
        {

        }

        internal void Publish()
        {
        }
    }
}
